<template>
  <section>
    <img :src="imgUrl" alt="" />
  </section>
</template>

<script>
// import img from "../../assets/images/logo.png";
export default {
  data() {
    // 用了本地图片，并且变量使用相对路径，图片不能显示
    return {
      // imgUrl: img,
      imgUrl: require("../../assets/images/logo.png"),
    };
  },
};
</script>

<style lang="less" scoped>
@import "../../assets/css/var.less";
section {
  width: 100%;
  height: 60px;
  border-bottom: 1px solid @border-color;
  background: #fff;

  img {
    width: 94px;
    height: 39px;
    margin: 10px 0 0 10px;
  }
}
</style>
